const config = {
  api: {
    baseURL: 'http://xueba.it266.com:8081/api',
    // baseURL: 'http://47.117.138.37:8080/api',
    // baseURL: 'http://47.117.2.215:5000/api',
    // 请求成功后返回的代码
    code: {
      success: 'SUCCESS',   // 200-任务成功
      error: 'ERROR',     // 200-任务失败
      notLoggedIn: ''           // 200-登录过期
    },
    // 基于 baseURL
    post: {
      base: '/post',
      // 基于 base
      categories: '/categories',
      createPost: '/create',
      deletePost: '/delete',
      favorite: '/favorite',      // 收藏
      getTagOrder: '/getTagOrder',
      like: '/like',          // 点赞
      listPost: '/list',
      myPost: '/my',
      myFavorite: '/myFavorite',
      createdReply: '/reply',
      viewReplies: '/replyList',
      view: '/view',          // 文章详情
      week: '/week',          // 周榜
      month: '/month',         // 月榜
    },
    sms: {
      base: '/sms',
      // 基于 base
      sendSms: '/create'
    },
    token: {
      base: '/token',
      // 基于 base
      create: '/create',
      delete: '/delete'
    },
    user: {
      base: '/user',

      // 不基于 base
      avatar: '/upload/avatar',

      // 基于 base
      create: '/create',
      mobile: '/mobile',
      verifyPwd: '/pwd',
      update: '/update',
      getVisitor: '/visitor',
      getUser: '/whoami'
    }
  },
  // 网页顶部设置
  head: {
    // Logo 文件路径
    logo: "夏日",
    // 标题
    title: "学坝论坛",
    // 导航栏元素，文章分类板块
    navi: [
      {
        page: "首页",
        categoryId: 1,
        route: "/home",
        component: null      // 首页的组件不在此设置
      },
      {
        page: "提问",
        categoryId: 2,
        route: "/home/ask",
        component: "test"
      },
      {
        page: "分享",
        categoryId: 3,
        route: "/home/share",
        component: "test"
      },
      {
        page: "建议",
        categoryId: 4,
        route: "/home/suggest",
        component: "test"
      },
      {
        page: "讨论",
        categoryId: 5,
        route: "/home/discuss",
        component: "test"
      },
      {
        page: "公告",
        categoryId: 6,
        route: "/home/announce",
        component: "test"
      },
      {
        page: "动态",
        categoryId: 7,
        route: "/home/news",
        component: "test"
      },
      {
        page: "其他",
        categoryId: 8,
        route: "/home/other",
        component: "test"
      },
    ],
  },
  main: {
    // 内容主页设置
    home: {
      postLinkPrefix: '/home/detail/',
    },
    // 个人中心页设置
    myhome: {
      operList: [
        {
          title: "我的主页",
          iconClass: "iconfont icon-zhuye",
          route: "/myhome/"
        },
        {
          title: "编辑资料",
          iconClass: "iconfont icon-bianji",
          route: "/myhome/edit"
        },
        {
          title: "我的帖子",
          iconClass: "iconfont icon-wodefatie",
          route: "/myhome/manage"
        },
        {
          title: "我的收藏",
          iconClass: "iconfont icon-shoucangdianjihou1",
          route: "/myhome/favorite"
        },
        {
          title: "我的消息",
          iconClass: "iconfont icon-xiaoxi",
          route: "/myhome/message"
        },
        {
          title: "基本设置",
          iconClass: "iconfont icon-shezhi",
          route: "/myhome/setting"
        },
      ]
    }
  },
  foot: {},
}

export default config
